package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 后台pcip和cdkey表
 * </p>
 *
 * @author stylefeng
 * @since 2018-02-02
 */
@TableName("em_t_pc_server_info")
public class PcServerInfo extends Model<PcServerInfo> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * PC的IP
     */
	private String ip;
    /**
     * 端口
     */
	private String port;
    /**
     * cdkey
     */
	private String cdkey;
	private String status;
    /**
     * 创建时间
     */
	@TableField("creat_time")
	private Date creatTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     *  服务器名称
     */
	@TableField("server_name")
	private String serverName;
    /**
     * 创建人
     */
	@TableField("create_user")
	private String createUser;
    /**
     * 更新人
     */
	@TableField("update_user")
	private String updateUser;
	/**
	 * 机器码
	 */
	@TableField("machine_code")
	private String machineCode;
	/**
	 * 验证方式 1在线  0离线
	 */
	@TableField("validation_type")
	private String validationType;



	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public String getCdkey() {
		return cdkey;
	}

	public void setCdkey(String cdkey) {
		this.cdkey = cdkey;
	}

	public Date getCreatTime() {
		return creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getMachineCode() {
		return machineCode;
	}

	public void setMachineCode(String machineCode) {
		this.machineCode = machineCode;
	}

	public String getValidationType() {
		return validationType;
	}

	public void setValidationType(String validationType) {
		this.validationType = validationType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PcServerInfo{" +
			"id=" + id +
			", ip=" + ip +
			", port=" + port +
			", cdkey=" + cdkey +
			", creatTime=" + creatTime +
			", updateTime=" + updateTime +
			", serverName=" + serverName +
			", createUser=" + createUser +
			", updateUser=" + updateUser +
			", machineCode=" + machineCode +
			", validationType=" + validationType +
			"}";
	}
}
